package com.example.mall.Service.Impl;

import com.example.mall.Service.UserService;
import com.example.mall.dao.UserMapper;
import com.example.mall.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {


    @Autowired
    private UserMapper userMapper;

    @Override
    public User selectByPrimaryKey(Integer id) {
        User user = userMapper.selectByPrimaryKey(id);
        return  user;
    }
}
